package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @Author 王加鑫
 * @Date 2021/09/16 21:38
 * @Since JDK 1.8
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "management_messages")
public class Messages implements Serializable {

    private static final long serialVersionUID = 8732308321082804971L;

    @Id
    private ObjectId id;
    /**
     * 用户id
     */
    @Indexed
    private Long userId;
    /**
     * 发布内容Id
     */
    private ObjectId mId;
    /**
     * 置顶状态，1为未置顶，2为置顶
     */
    private Integer topState;
    /**
     * 审核状态，1为待审核，2为自动审核通过，3为待人工审核，4为人工审核拒绝，5为人工审核通过，6为自动审核拒绝
     */
    private String state;
    /**
     * 喜欢数
     */
    private Integer loveCount;
    /**
     * 点赞数
     */
    private Integer likeCount;
    /**
     * 评论数
     */
    private Integer commentCount;
    /**
     * 举报数
     */
    private Integer reportCount;
    /**
     * 转发数
     */
    private Integer forwardingCount;
    /**
     * 发布时间
     */
    private Long createDate;
}
